package com.xyh.service.Impl;

import com.xyh.dao.UserDao;
import com.xyh.po.User;
import com.xyh.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Author:kyle
 * @Date:2020/12/14 - 11:10
 * @Project:spring_demo1
 * @Package:com.xyh.service.Impl
 * @Version:1.0
 */
@Component("userService")
public class UserServiceImpl implements UserService {


    @Autowired
    private UserDao userDao;

    @Override
    public boolean insertUser(User user) {

        int i = userDao.insertUser(user);
        return i>0?true:false;
    }
}
